﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PrinterMonitorSvc.Model
{
    /// <summary>
    /// JAVA接口相应类
    /// </summary>
    public class JavaResponseModel<T>
    {
        /// <summary>
        /// 
        /// </summary>
        public string targetUrl { get; set; }
        /// <summary>
        /// 错误信息
        /// </summary>
        public List<ErrorInfo> errorInfos { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public T result { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public bool success { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public bool authorizedRequest { get; set; }
    }

    public class ErrorInfo
    {
        /// <summary>
        /// 
        /// </summary>
        public int code { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string msg { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<string> details { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string validationErrorInfos { get; set; }
    }
}
